--[[---------------------------------------------------------
   Name: SeriliseSteamId| create the userid
-----------------------------------------------------------]]
function SeriliseSteamId( pl )

steamid = pl:SteamID() 

	userid = string.Right(tostring(steamid), 5)
	
	return userid
	
end
--[[---------------------------------------------------------
   Name: GetPlayerLevel| get the Player level from a specified Player
-----------------------------------------------------------]]
function GetPlayerLevel( userid )

	if( PlayerExists( userid ) == true ) then

	return tonumber(sql.QueryValue("SELECT level FROM rleveldb WHERE userid = '"..userid.."'"))

	else

	return NULL

	end

end
--[[---------------------------------------------------------
   Name: GetPlayerXp| get the Player XP from a specified Player
-----------------------------------------------------------]]
function GetPlayerXp( userid )

	if( PlayerExists( userid ) == true ) then

	return tonumber(sql.QueryValue("SELECT xp FROM rleveldb WHERE userid = '"..userid.."'"))

	else

	return NULL

	end

end
--[[---------------------------------------------------------
   Name: GetPlayerCredits| get the Player Credits from a specified Player
-----------------------------------------------------------]]
function GetPlayerCredits( userid )

	if( PlayerExists( userid ) == true ) then

	return tonumber(sql.QueryValue("SELECT credit FROM rleveldb WHERE userid = '"..userid.."'"))

	else

	return NULL

	end

end
--[[---------------------------------------------------------
   Name: GetPlayerHealth| get the Player +Health level from a specified Player
-----------------------------------------------------------]]
function GetPlayerHealth( userid )

	if( PlayerExists( userid ) == true ) then

	return tonumber(sql.QueryValue("SELECT health FROM rlevelskills WHERE userid = '"..userid.."'"))

	else

	return NULL

	end


end
--[[---------------------------------------------------------
   Name: GetPlayerRegeneration| get the Player regeneration level from a specified Player
-----------------------------------------------------------]]
function GetPlayerRegeneration( userid )

	if( PlayerExists( userid ) == true ) then

	return tonumber(sql.QueryValue("SELECT regeneration FROM rlevelskills WHERE userid = '"..userid.."'"))

	else

	return NULL

	end


end
--[[---------------------------------------------------------
   Name: GetPlayerLongJump| get the Player LongJump level from a specified Player
-----------------------------------------------------------]]
function GetPlayerLongJump( userid )

	if( PlayerExists( userid ) == true ) then

	return tonumber(sql.QueryValue("SELECT longjump FROM rlevelskills WHERE userid = '"..userid.."'"))

	else

	return NULL

	end


end
Msg("Networks was loaded\n")